<script setup name="App" lang="ts">
import { onMounted, ref } from 'vue';

const imgRef = ref<HTMLImageElement | null >(null)

onMounted(() => {
  console.log(imgRef.value?.src)
})
</script>
<template>
  <img src="https://pinia.vuejs.org/logo.svg" ref="imgRef" />
</template>
